package cn.com.connext.scrm.service.mapper;

import cn.com.connext.scrm.domain.master.ZnhjEntity;
import cn.com.connext.scrm.service.dto.ZnhjDTO;
import com.connext.common.mapper.EntityMapper;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring", uses = {})
public interface ZnhjMapper extends EntityMapper<ZnhjDTO, ZnhjEntity> {
//    @Transactional
//    @Modifying
//    @Query(value = "update product pr set pr.stock =:stock ,pr.update_time =now() where pr.stock =:stockOld and  id =:id ", nativeQuery = true)
//    Integer updateStock(@Param("stock") Integer stock, @Param("stockOld") Integer stockOld, @Param("id") String id);
//
//    Product findByCouponId(String id);
//
//    @Query(value = "select pr.* from product pr  where pr.coupon_id =:couponId and  pr.is_delete = 0  ", nativeQuery = true)
//    List<Product> findAllByCouponId(@Param("couponId") String couponId);
}
